<ul id="menu">
	<?php foreach( $menu as $key => $value ) { ?>
		<li id="menu_<?php echo $key; ?>">
			<?php print anchor( $value['url'] , $value['name'], array( 'class' => $value['icon'] ) ); 
			if( !empty( $value['sub'] ) ) { ?>
			<ul>
			<?php foreach( $value['sub'] as $subkey => $subvalue ) { ?>
				<li><?php print anchor( $subvalue['url'] , $subvalue['name'], array( 'class' => $subvalue['icon'] ) ); ?></li>
			<?php } ?>
			</ul>
			<?php } //if ?>
		</li>	
	<?php } //foreach ?>
</ul>

<!--  
<ul id="menu">	
    <li id="menu_home"><?php print anchor( '', 'Home', array( 'class'=>'icon_house' ) ) ?></li>
    <li id="menu_pages">
    	<?php print anchor( 'article/user/pages', 'Seiten', array( 'class'=>'icon_computer' ) )?>
        <ul>
        	<?php if(check('Category',NULL,FALSE)):?><li><?php print anchor('article/user/category', 'Category', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Article',NULL,FALSE)):?><li><?php print anchor('article/user/article', 'Article', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Menu',NULL,FALSE)):?><li><?php print anchor('article/user/menu', 'Menu', array('class'=>'icon_group'))?></li><?php endif;?>            	
        </ul>
    </li>
    <?php if(check('Media',NULL,FALSE)):?><li id="menu_files"><?php print anchor('article/user/upload', 'Media', array('class'=>'icon_group'))?></li><?php endif;?>
    <li id="menu_user"><?php print anchor('','Benutzer',array('class'=>'icon_house'))?></li>
    <li id="menu_mgt">
    	<span class="icon_computer"><?php print anchor('','Management')?></span>
        <ul>
        	<?php if(check('Guestbook',NULL,FALSE)):?><li><?php print anchor('guestbook/user/guestbook', 'Guestbook', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Blog',NULL,FALSE)):?><li><?php print anchor('blog/user/blog', 'Blog', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Form',NULL,FALSE)):?><li><?php print anchor('form/user/form', 'Form', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Checkin24',NULL,FALSE)):?><li><?php print anchor('checkin24/user/checkin24', 'Checkin24', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Events',NULL,FALSE)):?><li><?php print anchor('events/user/events', 'Events', array('class'=>'icon_group'))?></li><?php endif;?>
        	<?php if(check('Portlets',NULL,FALSE)):?><li><?php print anchor('article/user/portlets', 'Portlets', array('class'=>'icon_group'))?></li><?php endif;?>
        </ul>
    </li>
    <li id="menu_imprint"><?php print anchor('article/user/corporate', 'Imprint', array('class'=>'icon_house'))?></li>
    <li id="menu_trash"><?php print anchor('article/user/trash', 'Trash', array('class'=>'icon_house'))?></li>
    <li id="menu_help"><?php print anchor('article/user/help', 'Help', array('class'=>'icon_house'))?></li>
</ul>
 -->
